package com.wormhole.wormholemanagement.dto;

import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
public class DocumentNode {
    private String name;
    private String path;
    private boolean isDirectory;
    private List<DocumentNode> children;

    // 构造方法、getter和setter
    public DocumentNode(String name, String path, boolean isDirectory) {
        this.name = name;
        this.path = path;
        this.isDirectory = isDirectory;
        this.children = new ArrayList<>();
    }
}